package com.ts.enterprise.module.user.query;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 *
 * @author dean
 * @date 2021-07-14 11:05:56
 */
@Data
public class SmsCheckQuery {

    @NotBlank(message = "手机号不能为空")
    @ApiModelProperty(value = "手机号")
    @Length(min = 11,max = 11,message = "请输入11位手机号")
    private String mobile;

    @NotBlank(message = "验证码不能为空")
    @ApiModelProperty(value = "验证码")
    @Length(min = 6,max = 6,message = "验证码为6位数")
    private String smsCode;

}
